﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeploymentMaxLib
{
    public class ActionRoutine
    {
        public Guid Key { get; set; }
        public DateTime? Created { get; set; }
        public DateTime? Updated { get; set; }
        public ActionLocationType ActionType { get; set; }
        public List<ActionParam> ParamList { get; set; }

        public ActionRoutine()
        {
        }

        private ActionRoutine(ActionLocationType pActionType)
        {
            this.Key = Guid.NewGuid();
            this.ActionType = pActionType;
            this.Created = DateTime.Now;
            this.ParamList = new List<ActionParam>();
        }

        public static ActionRoutine New(ActionLocationType pActionType)
        {
            return new ActionRoutine(pActionType);
        }
    }
}
